package demo.xlj.yuyi.studentapp.myadapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import demo.xlj.yuyi.studentapp.R;
import demo.xlj.yuyi.studentapp.bean.HaveSheTuan;

/**
 * 作者：项路俊 on 2018/3/16 0016
 * 邮箱：ThanksForCode@gmail.com
 * 介绍：
 */

public class SheTuanAdapter extends BaseQuickAdapter<HaveSheTuan.InfoBean, BaseViewHolder> {
    public SheTuanAdapter(@LayoutRes int layoutResId, @Nullable List<HaveSheTuan.InfoBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HaveSheTuan.InfoBean item) {
        helper.setText(R.id.TextView_Commnity_Style_name, item.getName());
        helper.setText(R.id.TextView_Commnity_Style_content, item.getBelongTo());
        helper.addOnClickListener(R.id.ImageView_Community_Collection);
    }
}
